﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common/taglibs.jsp"%>
<!-- 
    Copyright (C)  2011  chen wei hua.
    Permission is granted to copy, distribute and/or modify this document
    under the terms of the GNU Free Documentation License, Version 2.0
    or any later version published by the Free Software Foundation;
    with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
    A copy of the license is included in the section entitled "GNU Free Documentation License".
 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>安排计划</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<%@ include file="../common/config.jsp"%>
<%@ include file="../common/validate.jsp"%>
<script type="text/javascript" src="js/calendar/WdatePicker.js" ></script>
<script type="text/javascript">
$(document).ready(function() {
	$("#saveOrderPlan").validate();
});
</script>
</HEAD>
<BODY>
    <div class="subnav" align="left">
           <table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="100%" align="left" height="31">&nbsp;<img src="images/title-pk.gif" border="0"  align="absmiddle"/>&nbsp;<span class="subnavtxt1">出货管理</span>
			&nbsp;<img src="images/leftico2.gif" border="0"  align="absmiddle"/>&nbsp;<span class="subnavtxt2">安排计划</span></td>
		  </tr>
		</table>
      </div>
	<s:actionerror cssStyle="color:red"/>
     <s:form action="saveOrderPlan">
     <s:hidden name="orderId" value="%{order.id}" />
     <div class="main_1">
       <table width="99%" border="0" cellpadding="10" cellspacing="1" bgcolor="#D3DEEF">
         <tr>
           <td align="left" class="Blue14" bgcolor="#FAFAFA" colspan="2">出货单信息</td>
         </tr>
         <tr>
		    <td width="19%" bgcolor="#FAFAFA" align="right"><strong>创建日期</strong></td>
		    <td width="81%" bgcolor="#FAFAFA"><s:date name="order.createDate" format="yyyy-MM-dd"/></td>
		 </tr>
		<tr>
	      <td bgcolor="#FAFAFA" align="right"><strong>客户名称</strong></td>
	      <td bgcolor="#FAFAFA"><s:property value="order.customName"/></td>
		</tr>
		<tr>
	      <td bgcolor="#FAFAFA" align="right"><strong>订单号</strong></td>
	      <td bgcolor="#FAFAFA"><s:property value="order.contractNo"/></td>
		</tr>
		<tr>
	      <td bgcolor="#FAFAFA" align="right"><strong>预发货日期</strong></td>
	      <td bgcolor="#FAFAFA"><s:date name="order.expectOutDate" format="yyyy-MM-dd"/></td>
		</tr>
  </table>
</div>
     <div class="clear"></div>
	 <div class="main_1">
       <table width="99%" cellpadding="0" cellspacing="1" border="0" class="ksglxx2a">
        <tr class="ksglxx2bg">
          <th width="8%" >分类</th>
          <th width="10%" >品名</th>
          <th width="20%" >规格</th>
          <th width="10%" >代码</th>
          <th width="10%" >客户代码</th>
          <th width="10%" >批号</th>
		  <th width="5%" align="left">数量</th>
		  <th width="5%" align="left">单位</th>
		  <th width="5%" align="left">包装数量(箱)</th>
		  <th width="7%" align="left">完成时间</th>
		  <th align="left">数量修改超过5%原因描述</th>
		</tr>
		<s:iterator value="order.orderDetails" id="detail" status="st">
        <tr class="odd">
          <td><s:property value="#detail.productCategory" /></td>
          <td><s:property value="#detail.productName" /></td>
          <td><s:property value="#detail.productType" /></td>
          <td><s:property value="#detail.productNo" /></td>
          <td><s:property value="#detail.customNo" /></td>
          <td><s:textfield id="batchNumbers-%{#st.index}" name="batchNumbers" size="10" cssClass="{required:true,maxlength:10}" value="%{#detail.batchNumber}" /></td>
          <td><s:textfield id="productNums-%{#st.index}" name="productNums" size="7" cssClass="{required:true,maxlength:7,number:true}" value="%{#detail.number}" /></td>
		  <td><s:property value="#detail.unit" /></td>
		  <td><s:textfield id="packageNumbers-%{#st.index}" name="packageNumbers" size="5" cssClass="{required:true,maxlength:5,number:true}" value="%{#detail.packageNumber}"/></td>
		  <td><s:textfield id="finishDates-%{#st.index}" name="finishDates" size="10" value="%{#detail.finishDate}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="true" cssClass="{required:true}"/></td>
		  <td><s:textfield id="changeReasons-%{#st.index}" name="changeReasons" size="30" value="%{#detail.changeReason}" /></td>
	    </tr>
	    </s:iterator>
       </table>
      </div>
     <div class="clear"></div>
	 <div class="main_1">
		<table width="98%" border="0" cellpadding="5" cellspacing="0" class="gr-text1">
		   <tr>
			 <td width="50%" align="right"><s:submit value="保存" cssClass="input1" /></td>
			 <td width="50%" align="left"><input type="button" value="关闭" class="input1" onclick='javascript:window.location.href="planList.action"' /></td>
		   </tr>
	   </table>
	</div>
	</s:form>
	<div class="clear"></div>
</BODY></HTML>
